Final Exam

Each problem below is worth 6 points. Overall the Python problems are worth 30 points and half of the Final exam grade.

Problem 1

Create a function that will take three integers as arguments and calculate their average.

Problem 2

Create a for loop, that will print only the female names from the list below:

name_list = ["Jack","James","Alice",
            "Jimmy","John","Andrea",
            "Joshua","Jonathan","Anastasia"]

Problem 3

Solve the problem above using a while loop.

Problem 4

Get all time stock data using pandas_datareader on Alibaba ("BABA") from Google finance. Show the plot of the Alibaba stock's Opening price. Calculate its 5 descriptive measures (mean, median, mode, range, standard deviation).

Problem 5

Define a function called converter that will take a string as an argument. This string should be some 3 digit amount followed USD or EUR (e.g. "115 USD" or "115 EUR"). The function will then convert this amount to AMD and return a string (e.g. "55011 AMD" or "65052 AMD")